package com.msxt.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("zaixiankefu")
public class ZaixiankefuEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;

	public ZaixiankefuEntity() {}

	public ZaixiankefuEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private String bianhao;
	private String biaoti;
	private String fengmian;
	private String shangjiazhanghao;
	private String shangjiamingcheng;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat
	private Date zixunshijian;

	private String neirong;
	private String shhf;
	private String yonghuzhanghao;
	private String yonghuxingming;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	// 新增时间戳字段
	private Long neirongTime; // 初始咨询内容时间戳
	private Long shhfTime;    // 商家回复时间戳

	// Getters and Setters
	public Long getId() { return id; }
	public void setId(Long id) { this.id = id; }

	public String getBianhao() { return bianhao; }
	public void setBianhao(String bianhao) { this.bianhao = bianhao; }

	public String getBiaoti() { return biaoti; }
	public void setBiaoti(String biaoti) { this.biaoti = biaoti; }

	public String getFengmian() { return fengmian; }
	public void setFengmian(String fengmian) { this.fengmian = fengmian; }

	public String getShangjiazhanghao() { return shangjiazhanghao; }
	public void setShangjiazhanghao(String shangjiazhanghao) { this.shangjiazhanghao = shangjiazhanghao; }

	public String getShangjiamingcheng() { return shangjiamingcheng; }
	public void setShangjiamingcheng(String shangjiamingcheng) { this.shangjiamingcheng = shangjiamingcheng; }

	public Date getZixunshijian() { return zixunshijian; }
	public void setZixunshijian(Date zixunshijian) { this.zixunshijian = zixunshijian; }

	public String getNeirong() { return neirong; }
	public void setNeirong(String neirong) { this.neirong = neirong; }

	public String getShhf() { return shhf; }
	public void setShhf(String shhf) { this.shhf = shhf; }

	public String getYonghuzhanghao() { return yonghuzhanghao; }
	public void setYonghuzhanghao(String yonghuzhanghao) { this.yonghuzhanghao = yonghuzhanghao; }

	public String getYonghuxingming() { return yonghuxingming; }
	public void setYonghuxingming(String yonghuxingming) { this.yonghuxingming = yonghuxingming; }

	public Date getAddtime() { return addtime; }
	public void setAddtime(Date addtime) { this.addtime = addtime; }

	public Long getNeirongTime() { return neirongTime; }
	public void setNeirongTime(Long neirongTime) { this.neirongTime = neirongTime; }

	public Long getShhfTime() { return shhfTime; }
	public void setShhfTime(Long shhfTime) { this.shhfTime = shhfTime; }
}